package com.mvp.shq.washer.ui.shop.comment;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.CommentEntity;
import com.mvp.shq.washer.entity.shop.CommentResponse;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/10/12.
 */

public class Model implements CommentConstract.Model {
    @Override
    public Observable<BaseResult<String>> comment(String token, List<CommentEntity> response) {
        return ShopApi.getInstance().service
                .productComment(token,response)
                .compose(RxSchedulers.io_main());
    }
}
